<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title th:text="${name}"></title>
</head>
<body>

</body>
<script type="text/javascript" language="javascript" th:inline="javascript">
    //获取url上面的参数
    function getQueryVariable(variable) {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i = 0; i < vars.length; i++) {
            var pair = vars[i].split("=");
            if (pair[0] == variable) {
                return pair[1];
            }
        }
        return (false);
    }

    let token = getQueryVariable("token");
    let url = [[${url}]]+"?token="+token;
    url = url.replace("\\", "");

    window.location.href=url;
</script>

</html>